function ps_add_quicktag() {
	// code from http://roel.meurders.nl/wordpress-plugins/wp-addquicktag-plugin-for-adding-quicktags/
	if (document.getElementById("ed_toolbar")) {
		if(wpaqToolbar = document.getElementById("ed_toolbar")){
			var wpaqNr, wpaqBut, wpaqStart, wpaqEnd;
			wpaqStart = '';
			wpaqEnd = '';
			wpaqNr = edButtons.length;
			edButtons[wpaqNr] = new edButton('ed_ImageManager','Imagemanager','', '','',-1);
			var wpaqBut = wpaqToolbar.lastChild;
			while (wpaqBut.nodeType != 1){
				wpaqBut = wpaqBut.previousSibling;
			}
			wpaqBut = wpaqBut.cloneNode(true);
			wpaqToolbar.appendChild(wpaqBut);
			wpaqBut.value = 'ImageManager';
			wpaqBut.title = wpaqNr;
			// wpaqBut.onclick = function () {edInsertTag(edCanvas, parseInt(this.title));}
			wpaqBut.onclick = function () {
				imagemagager_use_edInsert = true; // don't use buttonsnap_settext
				openImageManager();
			}
			wpaqBut.id = "ed_ImageManager";
		}
	}
}